#ifndef GAMEMAINDIALOG_H
#define GAMEMAINDIALOG_H

#include "abstractpage.h"
namespace Ui {
class TheaterPage;
}
class User;
class QBoxLayout;
class TheaterPage : public AbstractPage {
  Q_OBJECT
public:
  explicit TheaterPage(QWidget *parent = 0);
  virtual ~TheaterPage();

public:
  void updated();
  void leave();
  void notify(const QJsonObject &obj);

private slots:
  void on_pushButton_clicked();

private:
  QWidget *createUserWidget(User *user);
  void showDescriptionWordDlg();

private:
  Ui::TheaterPage *ui;

  QStringList m_files;
  QBoxLayout *layout = nullptr;
};

#endif // GAMEMAINDIALOG_H
